package com.miao.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.miao.common.entity.pojo.Store;
import com.miao.common.entity.pojo.StoreDirector;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商店表(Store)表数据库访问层
 *
 * @author MiaoWenqing
 * @since 2021-02-02 10:14:34
 */
@Mapper
@Repository
public interface AdminStoreDao extends BaseMapper<Store> {

    /**
     * 获取所有 申请 状态的店铺
     */
    List<StoreDirector> storeApplyAll();

    /**
     * 获取所有 审核通过 状态的店铺
     */
    List<StoreDirector> storeAll();

}